<?php
class NewsWidget extends CWidget {
	public function init() {

	}

	public function NewsWidget() {
		$criterial = new CDbCriteria();
		$criterial->limit = 6;
		$criterial->order = "timepost DESC";
		$model = News::model()->findAll($criterial);
		$this->render('News', array('model'=>$model));
	}
}
?>